home *** CD-ROM | disk | FTP | other *** search
/ 64'er 1987 October / 64er_Magazin_87-10_1987_Markt__Technik_de.d64 / pd menu maker (.txt) < prev    next >
Commodore BASIC  |  2022-10-26  |  3KB  |  97 lines

  1. 1 rem
  2. 2 rem pulldown   menu maker
  3. 3 rem
  4. 4 rem (c) 86: marosoft
  5. 5 rem
  6. 9 if fl=0 then dim m(5),m$(5),b$(5,11)
  7. 10 if fl=0 then fl=1:print "[147]loading pd1-4 ...":load "pd1",8,1
  8. 11 if fl=1 then fl=2:load "pd2",8,1
  9. 12 if fl=2 then fl=3:load "pd3",8,1
  10. 13 if fl=3 then fl=4:load "pd4",8,1
  11. 14 print"[147]pulldown menu maker        (c) marosoft"
  12. 15 open 1,8,15:print#1,"r:h#h#h#=pd0"
  13. 16 input#1,a,b$,c,d:if a<>0 then 20
  14. 17 print#1,"r:pd0=h#h#h#":print" pd0 existiert schon auf dieser disk"
  15. 18 print" andere disk einlegen, <return>
  16. 19 [133] a$:[160] 1:[137] 15
  17. 20 [152]1,"i":[160] 1
  18. 21 [153]"es stehen 5 obermenues zur verfuegung.
  19. 22 print"bitte geben sie die namen ein:"
  20. 23 print "stellen sie die gross/kleinshreibung wiein ihrem programm ein !!!
  21. 30 [129] x[178]1 [164] 5:b$[178]" ":[139] x[178]5 [167] b$[178]""
  22. 40 [153]"menu"x":";
  23. 50 [133] t$
  24. 60 [139] [195](t$)[177]7[170](x[178]5) [167] [153]"on";:[137] 40
  25. 70 [153]
  26. 80 [139] [195](t$)[178]7[170](x[178]5) [167] 100
  27. 90 t$[178]t$[170]" ":[137] 80
  28. 100 m$(x)[178]t$:t$[178]"":[153]:[153]"on "
  29. 110 [130] x
  30. 120 me$[178]" "
  31. 130 [129] x[178]1 [164] 5:me$[178]me$[170]m$(x)[170]" ":[130] x
  32. 140 [153]"load"me$;:[129] x[178]1 [164] 40:[153]"=";:[130] x
  33. 150 [153]:[153]"^ so sieht die kopfzeile aus. ok (j/n) ?"
  34. 160 [161] a$:[139] a$[178]"" [167] 160
  35. 170 [139] a$[179][177]"j" [167] 10
  36. 200 [153] "loadjetzt die anzahl befehle pro menu:
  37. 210 for x=1 to 5
  38. 220 print"menu"x": "+m$(x):input m(x)
  39. 230 if m(x)>10 or m(x)<1 then print"[145][145][145]";:goto 220
  40. 240 next x
  41. 250 print"[147]und jetzt die befehle:
  42. 260 [129] x[178]1 [164] 5:[153]"fuer menu"x": "m$(x)" ("m(x)")"
  43. 270 [129] y[178]1 [164] m(x)
  44. 280 [153]y":":[133] b$(x,y)
  45. 290 [139] [195](b$(x,y))[177]17 [167] [153]"on";:[137] 280
  46. 291 [139] [195](b$(x,y))[178]17 [167] 293
  47. 292 b$(x,y)[178]b$(x,y)[170]" ":[137] 291
  48. 293 b$(x,y)[178]"= "[170]b$(x,y)[170]" ="
  49. 300 [130] y:b$(x,y)[178]"=====================":[130] x
  50. 310 [153]"load  (1) uebersicht am bildschirm
  51. 311 print"  (2) uebersicht auf drucker
  52. 312 [153]"  (3) daten errechnen und speichern"
  53. 320 [161] a$:a[178][197](a$):[139] a[178]0 [176] a[177]3 [167] 320
  54. 330 [139] a[178]3 [167] 500
  55. 340 [159] 1,2[170]a
  56. 350 [152]1:[152]1:[152]1,me$
  57. 360 [129] x[178]1 [164] 5:[152]1: [152]1,m$(x)":":[152]1
  58. 370 [129] y[178]1 [164] m(x):[152]1,y"  -"b$(x,y)
  59. 380 [130] y,x
  60. 390 [160] 1:[137] 310
  61. 500 [153]"loadbitte warten, ich rechne... _ hier codetest!
  62. 510 rem header (kopfzeile)
  63. 520 l=49408:t$=me$:gosub 10000
  64. 530 for x=1 to 5
  65. 540 poke 50927+x,m(x)-1
  66. 550 next x
  67. 560 l=51712
  68. 570 for x=1 to 5:l=l+256
  69. 580 t$="":for y=1 to m(x)+1:t$=t$+b$(x,y):next y:gosub 10000
  70. 590 next x
  71. 600 print"        _ countdown          "
  72. 604 print"diskette einlegen! ok? return!"
  73. 605 input a$
  74. 610 print"ich speichere jetzt !"
  75. 620 open 1,8,2,"pd0,p,w"
  76. 630 print#1,chr$(0);chr$(192);
  77. 640 for x=49152 to 53247:print""53247-x"    "
  78. 650 print#1,chr$(peek(x));:next x
  79. 660 close 1
  80. 700 print"[147]codetabelle ausdrucken (j/n)
  81. 710 [161] a$:[139] a$[178]"" [167] 710
  82. 720 [139] a$[179][177]"j" [167] 9999
  83. 730 [159] 1,4
  84. 740 [152]1,"codetabelle fuer pulldown-menues                    (c) marosoft '86
  85. 750 print#1:print#1,"kopfzeile:":print#1,me$
  86. 760 for x=1 to 5:print#1:print#1,m$(x):print#1
  87. 770 for y=1 to m(x):print#1,(x-1)*10+y-1;tab(5);b$(x,y):next y,x
  88. 780 print#1:print#1,99;tab(5)"quit ohne auswahl"
  89. 790 close 1
  90. 9999 end
  91. 10000 rem code errechnen und nach l
  92. 10010 for i=1 to len(t$):a$=mid$(t$,i,1)
  93. 10020 print"";a$;
  94. 10030 poke l+i-1,peek(1024)
  95. 10040 next i
  96. 10050 return
  97.